package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ding
 * @since 2020-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_input_product_receive")
public class OrderInputProductReceiveDo extends Model<OrderInputProductReceiveDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 入库单id
     */
    @TableField("order_input_id")
    private Long orderInputId;

    /**
     * 包裹id
     */
    @TableField("package_id")
    private Long packageId;

    /**
     * 产品编号
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 顾客SKU
     */
    @TableField("commodity_sku")
    private String commoditySku;

    /**
     * 申请数量
     */
    @TableField("count")
    private Integer count;

    /**
     * 实收数量
     */
    @TableField("receive_count")
    private Integer receiveCount;

    /**
     * 破损数量
     */
    @TableField("broken_count")
    private Integer brokenCount;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("package_receive_id")
    private Long packageReceiveId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
